package com.icloud.common.database.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

@Getter
@Setter
@TableName("app_customer_auth")
@ApiModel(value = "AppCustomerAuth对象", description = "前台客户账号")
public class AppCustomerAuth implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty("修改时间")
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @ApiModelProperty("前台账号 app_customer.id")
    @TableField("customer_id")
    private Long customerId;

    @ApiModelProperty("登陆密码")
    @TableField("`password`")
    private String password;

    @ApiModelProperty("交易密码")
    @TableField("`tx_password`")
    private String txPassword;

    @ApiModelProperty("助记词")
    @TableField("`mnemonics`")
    private String mnemonics;

    @ApiModelProperty("私钥")
    @TableField("`pr`")
    private String pr;

    @ApiModelProperty("双因子秘钥")
    @TableField("`two_factor_key`")
    private String twoFactorKey;
}
